package com.snj.bestdealer.join;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.RelativeLayout;

import com.snj.bestdealer.InjectView;
import com.snj.bestdealer.InjectViewActivity;
import com.snj.bestdealer.R;

public class JoinStartActivity extends InjectViewActivity implements OnClickListener {
	
	@InjectView
	RelativeLayout rlly_consumer, rlly_dealer, rlly_shop;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		setContentView(R.layout.activity_join_start);
		super.onCreate(savedInstanceState);
		
		rlly_consumer.setOnClickListener(this);
		rlly_dealer.setOnClickListener(this);
		rlly_shop.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		if(v==rlly_consumer) {
			showActivity(JoinConsumerActivity.class);
		}
		else if(v==rlly_dealer) {
			showActivity(JoinDealerActivity.class);
		}
		else if(v==rlly_shop) {
			showActivity(JoinShopActivity.class);
		}
	}
	
}
